<h1>Listing transactions</h1>

<table>
  <tr>
    <th>Date</th>
    <th>Number</th>
    <th>Payee category</th>
    <th>Amount</th>
    <th>Credit</th>
    <th>Account</th>
  </tr>

<% for transaction in @transactions %>
  <tr>
    <td><%=h transaction.date %></td>
    <td><%=h transaction.number %></td>
    <td><%=h transaction.payee_category %></td>
    <td><%=h transaction.amount %></td>
    <td><%=h transaction.credit %></td>
    <td><%=h transaction.account %></td>
    <td><%= link_to 'Show', transaction %></td>
    <td><%= link_to 'Edit', edit_transaction_path(transaction) %></td>
    <td><%= link_to 'Destroy', transaction, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New transaction', new_transaction_path %>
